<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .container {
            display: grid;
            grid-template-rows: repeat(3, 100px);
            grid-template-columns: repeat(3, 100px);
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="item" style="background-color: blue;grid-row:1 / span 2;grid-column:1 / span 2;"></div>
        <div class="item" style="background-color: red;grid-row:3;grid-column:1 / span 3;"></div>
        <div class="item" style="background-color: yellow;grid-row:1 / span 2;grid-column:3;"></div>
    </div>
    <script>
        // 如果一个函数没有显式的给绑定this,它就属于window 
        var obj = {
            fn: function () {
                var that = this
                function fn1() {
                    console.log(that);
                }
                fn1()
            }
        }
        obj.fn()
    </script>
</body>

</html>